package com.yx.feign.api;

import com.yx.vo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Classname AddressService
 * @Date 2021/07/19 22:05
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "address",
        path = "/addressController"
)
public interface AddressService {
    @RequestMapping("/getAddressListByUid/{uid}")
    public List<Address> getAddressListByUid(@PathVariable Integer uid);

    @RequestMapping("/save")
    public Boolean save(@RequestBody Address address);

    @RequestMapping("/getAddressByid/{id}")
    Address getAddressByid(@PathVariable Integer id);
}
